<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8" />
    <title>登录</title>
    <base th:href="${#httpServletRequest.getScheme()+'://'+#httpServletRequest.getServerName()+':'+#httpServletRequest.getServerPort()+''+#httpServletRequest.getContextPath()+'/'}" href="">
    <link rel="stylesheet" th:href="@{login/css/login.css}" href="../../login/css/login.css" />
</head>
<body>
<div id="outer">
    <div class="logo">
        <!-- <img src="../../login/img/logo.png" alt="logo" /> -->
        <h2 style="color:#57c3fb; ">爱智付合伙人管理平台</h2>
    </div>
    <p class="login-way">

    </p>

    <div class="login-panel login-panel-account ">
        <form id="login" target="hidden_iframe" method="post" action="admin_user/login" class="form-horizontal bv-form" >
            <div class="login-input">
                <input type="text" class="login-input-txt" name="userName" id="userName" placeholder="请输入账号" onfocus="clearMsg()" value=""/>
                <img th:src="@{login/img/icon_account.png}" src="../../login/img/icon_account.png" alt="账号" class="prefix" />

                <div class="error-tip hide" id="msg_tip">
                    <img th:src="@{login/img/icon_error.png}" src="../../login/img/icon_error.png" alt="错误提示" />
                    <span id="msg_info"></span>
                    <em class="triangle">&nbsp;</em>
                    <span class="triangle">&nbsp;</span>
                </div>

            </div>
            <div class="login-input">
                <input type="password" class="login-input-txt" name="pwd" id="pwd" placeholder="请输入登录密码" onfocus="clearMsg()" value=""/>
                <img th:src="@{login/img/icon_password.png}" src="../../login/img/icon_password.png" alt="密码" class="prefix" />
            </div>
            <div class="login-input">
                <input type="text" class="login-input-txt login-input-txt-short vm" name="myCode" id="" placeholder="请输入验证码" onfocus="" value=""/>
                <div class="vertify-code inline vm">
                    <img src="check_code/pic" alt="验证码" class="vt img-code" id="pic_code"/>
                    <a href="javascript:picReload();" title="换一换" class="refresh">换一换</a>
                </div>
            </div>
            <p class="login-footer">
                <input type="submit" value="登录" title="登录" />
            </p>
            <em class="triangle">&nbsp;</em>
            <span class="triangle">&nbsp;</span>
        </form>
    </div> 
    <div class="line"></div>
    <p class="copy-right">Copyright&nbsp;&copy;&nbsp;2019-2020&nbsp;All&nbsp;Rights&nbsp;Reserved</p>
    <p class="copy-right">蜀ICP备19029876号-1</p>
</div>
<iframe id="hidden_iframe" name="hidden_iframe" style="display: none;"></iframe>
<script th:src="@{login/js/jquery-1.8.3.min.js}" src="../../login/js/jquery-1.8.3.min.js"></script>
<script th:inline="javascript" type="text/javascript">
    var ctx = [[${#httpServletRequest.getScheme()+'://'+#httpServletRequest.getServerName()+':'+#httpServletRequest.getServerPort()+''+#httpServletRequest.getContextPath()+'/'}]];
    function clearMsg(){
        $("#msg_tip").addClass("hide");
    }

    function picReload(){
        $("#pic_code").attr("src","check_code/pic?t="+new Date().getTime());
    }

    function callBack(rs){
        if(rs=='ok'){
            window.location.href=ctx+"main";
        }else{
            $("#msg_info").html(rs);
            $("#msg_tip").removeClass("hide");
        }
    }
</script>
</body>
</html>
